home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7218 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  822 b 

  1. Path: news.th-darmstadt.de!news
  2. From: Enno Sandner <enno@intellektik.informatik.th-darmstadt.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q: Template forward declare.
  5. Date: Thu, 22 Feb 1996 09:38:10 +0100
  6. Organization: Fachbereich Informatik, TH Darmstadt
  7. Message-ID: <312C2B72.794BDF32@intellektik.informatik.th-darmstadt.de>
  8. References: <312BB621.41C6@fumin.nintendo.co.jp>
  9. NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3 sun4m)
  14.  
  15. Giles Goddard wrote:
  16. > Help.
  17. > Does anybody know how to forward declare a class template?
  18. > something equivelent to:
  19. > class Foo;
  20.  
  21. To declare for instance a generic class Foo<T> you can write
  22.  
  23.         template<class T> class Foo;
  24.  
  25.  
  26.     Enno
  27.